{% extends 'user_layout.html' %}

{% block lk %}
    {% load static %}
    <title>用户个人信息</title>
    <link rel="stylesheet" type="text/css" href="{% static 'plugins/bootstrap-3.4.1/css/bootstrap.min.css' %}">
{% endblock %}

{% block content_user %}

        <div class="info_con clearfix">
        <h3 class="common_title2">基本信息</h3>
                <ul class="user_info_list">
                    <li><span>用户名：</span>{{ user_data.name }}</li>
                    <li><span>联系方式：</span>{{ user_data.phone_number }}</li>
                    <li><span>联系地址：</span>{{ user_data.user_address }}</li>
                </ul>
        </div>

        <h3 class="common_title2" style="top: 50px">最近浏览</h3>
        <div class="has_view_list">
            <ul class="goods_type_list clearfix">
        {% for goods in visit_goods %}
            <li>
                <a href="http://127.0.0.1:8000/detail/{{ goods.id }}/"><img src="/static/img/{{ goods.img }}"></a>
                <h4><a href="http://127.0.0.1:8000/detail/{{ goods.id }}/">{{ goods.title }}</a></h4>
                <div class="operate">
                    <span class="prize">￥{{ goods.price }}</span>
                    <span class="unit">{{ goods.price }}/500g</span>
                    <a href="#" class="add_goods" title="加入购物车"></a>
                </div>
            </li>
        {% endfor %}

    </ul>
</div>


{% endblock %}

